package com.ecommerce.dal.dao;

import java.util.List;

import com.ecommerce.dal.entity.User;

public interface IUserDAO {
	void save(User user);
	void update(User user);
	void delete(User user);
	User findByUserId(long userId);
	User findByUserUsername(String userName);
	User findByUserVerified(String userName , String password);
	boolean checkUserNameIfExists(String userName);
	boolean checkUserIdIfExists(long userId);
	
	List<User> findNewsletterUsers();
	List<User> findAllUsers();
}
